package com.yuyou.tas.admin.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.tas.admin.tool.MailUtil;
import com.yuyou.tas.service.api.admin.service.MailAPI;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

@RestController
public class MailAPIImpl implements MailAPI {

	@Autowired
	private MailUtil mailUtil;
	
	@Override
	public ResBoolSimpleInfo<String> sendMonitorEmail(@RequestParam("subject") String subject,@RequestParam("content") String content){
		return mailUtil.sendMonitorEmail(subject, content);
	}

}
